﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;

namespace MvcEngine.Contact.Models
{
    public class MessageData
    {
        [RequiredFieldValidator("$RequiredValidator")]
        [LengthValidator("$LengthValidator", 50)]
        public string Name { get; set; }

        [RequiredFieldValidator("$RequiredValidator")]
        [LengthValidator("$LengthValidator", 256)]
        [RegularExpressionValidator("$EmailValidator", "$EmailRegexExpression", true)]
        public string Email { get; set; }

        [RequiredFieldValidator("$RequiredValidator")]
        [LengthValidator("$LengthValidator", 256)]
        public string Subject { get; set; }

        [RequiredFieldValidator("$RequiredValidator")]
        [LengthValidator("$LengthValidator", 1000)]
        public string Message { get; set; }
    }
}
